type TimerCallback = (id:number,data:any) => void;

class Timer {
    id = -1
    enabled = false
    callback:TimerCallback
    callbackData:any = undefined
    countdown = 0
    timeout = 0
    onlyOnce = false

    constructor(callback:TimerCallback){
        this.callback = callback
    }
}

export {
    TimerCallback,
    Timer
}